import axios from 'axios'

const getImgUrl = (name, type) => axios.put(`/api/img/put/${name}/${type}`).then(res => res.data)
const putImg = (url, file) => axios.put(url,{file:file},{
    headers: {'Content-Type':'application/octet-stream',"x-oss-meta-author":"nothing"}
}).then(res => res)

export {
    getImgUrl,putImg
}